import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class test2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("Java_11_16\\b.txt");
        FileOutputStream fos = new FileOutputStream("Java_11_16\\c.txt");
        int ch;
        while((ch = fis.read()) != -1) {
            fos.write(ch ^ 1);
        }
        fos.close();
        fis.close();
    }
}
